Description:
PCO checks expressions that appear before the ? in the conditional operator
? :. If such an expression contains a binary operator,
it should be parenthesized.
Incorrect:
int abs(int x) {
return x >= 0 ? x : -x;
}
Correct:
int abs(int x) {
return (x >= 0) ? x : -x;
}